Introduction

THe Spotify dataset by year contains data from 1922 to 2021, collected by Yamac Eren using Spotify’s web API. The dataset contains information on acousticness, danceability, duration, etc.

Below you will find different visualizations that show how music has played a role in U.S. history.

Popularity by Year

Below you will find a chart that shows a scatter plot visualization of how music popularity has changed throughout the years.

## `geom_smooth()` using formula 'y ~ x'

We chose to use a scatter plot to show data because it best demonstrated the trend in music popularity. We found that the overall music popularity has seen a continuous increase over the years and has continued to become a more prominent part of our culture. The scatter plot shows a strong positive correlation between the popularity of music (y-axis) over the years (x-axis) and we included a line of best fit to show the general trend.

Danceability and Instrumentalness by Year

We chose to use a stacked bar chart as the intent was to compare the overall change in “danceability” and “instrumentalness” of music over time, to see if there exist a relationship between “danceability” and “instrumentalness”. Based on the chart, we found that from 1921 to 2020, there seems to be no significant change in “danceability”. However, there is clearly a downward trend in “instrumentalness”.

Loudness by Year

## `geom_smooth()` using method = 'loess' and formula 'y ~ x'

We chose to use a line graph with a smooth line to clearly visualize the change in the loudness of music (dB) over time. The smoothline further aids the audience to capture the overall trend of the loudness level of music from 1921 to 2020. From our observation, we discovered that the change in loudness level from the early 1920s to 1950s was very dynamic, ranging from -19.275dB to -13.864. Also, the smooth line conveys that the overall loudness level of music has been gradually increasing, reaching its max in year 2020.